home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4460 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: sun001.spd.dsccc.com!sun001!dthornto
  2. From: dthornto@aplo266.spd.dsccc.com (Duane Thornton)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: help finding ranges of types
  5. Date: 30 Jan 1996 13:54:33 GMT
  6. Organization: none
  7. Message-ID: <DTHORNTO.96Jan30075433@aplo266.spd.dsccc.com>
  8. References: <4eiud1$r0u@geraldo.cc.utexas.edu>
  9. NNTP-Posting-Host: aplo266.spd.dsccc.com
  10. In-reply-to: trakas@mail.utexas.edu's message of 29 Jan 1996 16:59:13 GMT
  11.  
  12. >>>>> On 29 Jan 1996 16:59:13 GMT, trakas@mail.utexas.edu (Travis Kaspar) said:
  13.  
  14.     Travis> I have to determine the ranges (ie allowable values) for
  15.     Travis> all the basic types, without using sizeof(type).  I know I
  16.     Travis> could increment from 0 until the sign changed, but I don't
  17.     Travis> think that will work with float, and there's bound to be
  18.     Travis> an easier way (doesn't there?)
  19.  
  20.     Travis> Thanks,
  21.     Travis> Travis Kaspar
  22.     Travis> trakas@mail.utexas.edu
  23.  
  24. Have you looked at the include file <limits.h> ?
  25.  
  26. Duane 
  27.  
  28. ---------------------------- Duane Thornton --------------------------------
  29. Internet:  dthornto@spd.dsccc.com                       Opinions are my own.
  30. DSC Communications Corporation   Addr: MS 153, 1000 Coit Rd, Plano, TX 75075
  31. ----------------------------------------------------------------------------
  32. --
  33. Duane x94916 
  34.  
  35. ---------------------------- Duane Thornton --------------------------------
  36. Internet:  dthornto@spd.dsccc.com                       Opinions are my own.
  37. DSC Communications Corporation   Addr: MS 153, 1000 Coit Rd, Plano, TX 75075
  38. ----------------------------------------------------------------------------
  39.